package com.giscloud.limp.dao;

import com.giscloud.limp.entity.LegalProject;
import org.apache.ibatis.annotations.Param;
import com.giscloud.limp.entity.LegalProjectExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 法务项目管理
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-08 14:49:46
 */
public interface LegalProjectDao {
    @DynamicDataSource("ds1")
    long countByExample(LegalProjectExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(LegalProjectExample example);
    @DynamicDataSource("ds1")
    int insert(LegalProject record);
    @DynamicDataSource("ds1")
    int insertSelective(LegalProject record);
    @DynamicDataSource("ds1")
    List<LegalProject> selectByExample(LegalProjectExample example);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") LegalProject record, @Param("example") LegalProjectExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") LegalProject record, @Param("example") LegalProjectExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(LegalProject record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(LegalProject record);
    @DynamicDataSource("ds1")
    LegalProject selectByPrimaryKey(Integer legalProjectId);
    @DynamicDataSource("ds1")
    LegalProject selectOneByExample(LegalProjectExample example);
    @DynamicDataSource("ds1")
    LegalProject selectOneByExampleSelective(@Param("example") LegalProjectExample example, @Param("selective") LegalProject.Column... selective);
    @DynamicDataSource("ds1")
    LegalProject selectByPrimaryKeySelective(Integer legalProjectId, @Param("selective") LegalProject.Column... selective);
    @DynamicDataSource("ds1")
    List<LegalProject> selectByExampleSelective(@Param("example") LegalProjectExample example, @Param("selective") LegalProject.Column... selective);

}
